<script setup>
import {useRoute} from 'vue-router'
import {defineProps,ref} from 'vue'
defineProps(['id','name'])
const uname = ref()

</script>

<template>
  <p>{{$route.params.name}}</p>
<h3>用户中心，姓名：{{useRoute().params.name}}---{{useRoute().params.id}} ==={{$route.params.id}} </h3>
  <p>id={{id}}，name={{name}}</p>
</template>

<style scoped>

</style>
